package cn.ztr.ymcc.dto;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class UserRegisterDTO {
    private String imageCode;
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]{1}[0-9]{9}$")
    private String mobile;
    @NotBlank(message = "密码不能为空!")
    private String password;
    private Integer regChannel;
    @NotBlank(message = "验证码不能为空")
    private String smsCode;
}
